From f0eed4a5b14e7d55331cd58d14f857e789a401ed Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Nov 2010 15:37:36 -0500 Subject: [PATCH] Use gtk_icon_info_load_symbolic_for_context gtk_icon_info_load_symbolic_for_style is going to be deprecated. --- gtk/gtkcellrendererpixbuf.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 52b4ec98e5..729d08a89d 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -533,14 +533,13 @@ gtk_cell_renderer_pixbuf_create_themed_pixbuf (GtkCellRendererPixbuf *cellpixbuf if (info) { - GtkStyle *style; - - style = gtk_widget_get_style (GTK_WIDGET (widget)); - priv->pixbuf = gtk_icon_info_load_symbolic_for_style (info, - style, - GTK_STATE_NORMAL, - NULL, - NULL); + GtkStyleContext *context; + + context = gtk_widget_get_style_context (GTK_WIDGET (widget)); + priv->pixbuf = gtk_icon_info_load_symbolic_for_context (info, + context, + NULL, + NULL); gtk_icon_info_free (info); } @@ -603,12 +602,13 @@ create_symbolic_pixbuf (GtkCellRendererPixbuf *cellpixbuf, if (info) { - GtkStyle *style; + GtkStyleContext *context; - style = gtk_widget_get_style (GTK_WIDGET (widget)); - pixbuf = gtk_icon_info_load_symbolic_for_style (info, - style, state, - NULL, NULL); + context = gtk_widget_get_style_context (GTK_WIDGET (widget)); + pixbuf = gtk_icon_info_load_symbolic_for_context (info, + context, + NULL, + NULL); gtk_icon_info_free (info); return pixbuf; } -- 2.30.2